<template>
  <view class="hot-panel">
    <view class="item" v-for="item in props.list" :key="item.id">
      <view class="title">
        <view class="title-name">{{ item.title }}</view>
        <view class="title-alt">{{ item.alt }}</view>
      </view>
      <navigator hover-class="none" :url="`/pages/hot/hot?type=${item.type}`" class="images-box">
        <image class="image" mode="aspectFill" :src="item.pictures[0]"></image>
        <image class="image" mode="aspectFill" :src="item.pictures[1]"></image>
      </navigator>
    </view>
  </view>
</template>

<script lang="ts" setup>
import type { THotItem } from '@/types/home'

const props = defineProps<{
  list: THotItem[]
}>()
</script>

<style lang="scss" scoped>
@import '../styles/HotPanel';
</style>
